package com.woniu.userservice.service;

import com.woniu.userservice.entity.Messages;
import java.util.List;

public interface MessagesService {

    Messages queryById(Integer id);

    List<Messages> queryAllByLimit(int offset, int limit);
    
    List<Messages> findAll();
    Messages insert(Messages messages);

    Messages update(Messages messages);

    boolean deleteById(Integer id);

    /**
     *
     * @param goodsid
     * @return设置提醒的人数
     */
    Integer selectReminderpeople(Integer goodsid);
}